package com.shaoshaohuo.app.entity;

import android.os.Parcel;
import android.os.Parcelable;

public class Price implements Parcelable {

	private String id;
	private String productName;
	private String productType;
	private String productVariety;
	private String lowPrice;
	private String highPrice;
	private String addressInfo;
	private String type;
	private String remark;
	private String userId;
	private String insertTime;
	private String priceType;
	private String money;
	private String unit;

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getProductName() {
		return productName;
	}

	public void setProductName(String productName) {
		this.productName = productName;
	}

	public String getProductType() {
		return productType;
	}

	public void setProductType(String productType) {
		this.productType = productType;
	}

	public String getProductVariety() {
		return productVariety;
	}

	public void setProductVariety(String productVariety) {
		this.productVariety = productVariety;
	}

	public String getLowPrice() {
		return lowPrice;
	}

	public void setLowPrice(String lowPrice) {
		this.lowPrice = lowPrice;
	}

	public String getHighPrice() {
		return highPrice;
	}

	public void setHighPrice(String highPrice) {
		this.highPrice = highPrice;
	}

	public String getAddressInfo() {
		return addressInfo;
	}

	public void setAddressInfo(String addressInfo) {
		this.addressInfo = addressInfo;
	}

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}

	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	public String getUserId() {
		return userId;
	}

	public void setUserId(String userId) {
		this.userId = userId;
	}

	public String getInsertTime() {
		return insertTime;
	}

	public void setInsertTime(String insertTime) {
		this.insertTime = insertTime;
	}

	public String getPriceType() {
		return priceType;
	}

	public void setPriceType(String priceType) {
		this.priceType = priceType;
	}

	public String getMoney() {
		return money;
	}

	public void setMoney(String money) {
		this.money = money;
	}

	public String getUnit() {
		return unit;
	}

	public void setUnit(String unit) {
		this.unit = unit;
	}

	@Override
	public int describeContents() {
		return 0;
	}

	@Override
	public void writeToParcel(Parcel dest, int flags) {
		// private String id;
		// private String productName;
		// private String productType;
		// private String productVariety;
		// private String lowPrice;
		// private String highPrice;
		// private String addressInfo;
		// private String type;
		// private String remark;
		// private String userId;
		// private String insertTime;
		// private String priceType;
		// private String money;
		dest.writeString(id);
		dest.writeString(productName);
		dest.writeString(productType);
		dest.writeString(productVariety);
		dest.writeString(lowPrice);
		dest.writeString(highPrice);
		dest.writeString(addressInfo);
		dest.writeString(type);
		dest.writeString(remark);
		dest.writeString(userId);
		dest.writeString(insertTime);
		dest.writeString(priceType);
		dest.writeString(money);
		dest.writeString(unit);
	}

	public static final Creator<Price> CREATOR = new Creator<Price>() {

		@Override
		public Price createFromParcel(Parcel source) {
			Price price = new Price();
			price.setId(source.readString());
			price.setProductName(source.readString());
			price.setProductType(source.readString());
			price.setProductVariety(source.readString());
			price.setLowPrice(source.readString());
			price.setHighPrice(source.readString());
			price.setAddressInfo(source.readString());
			price.setType(source.readString());
			price.setRemark(source.readString());
			price.setUserId(source.readString());
			price.setInsertTime(source.readString());
			price.setPriceType(source.readString());
			price.setMoney(source.readString());
			price.setUnit(source.readString());
			return price;
		}

		@Override
		public Price[] newArray(int size) {
			return new Price[size];
		}

	};

}
